#随机生成四个8位的验证码
import numpy as np

Num = np.array(list('0123456789'))
Upp = np.array(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
Low = np.array(list('abcdefghijklmnopqrstuvwxyz'))
Str = np.array(list('#@&*^~$!%_-?><'))
A = [Num, Upp, Low, Str]
ret = np.array([])
for arr in A:
    ret = np.append(ret, arr)
#print(ret)

print("随机生成四个8位的验证码是：")
for i in range(4):
    #s = (np.random.choice(ret, size=8))
    s2 = ''.join(np.random.choice(ret, size=8))
    print(s2)